package com.zyl.king.controller;

import com.zyl.king.VO.OrderVO;
import com.zyl.king.result.Result;
import com.zyl.king.service.IProductService;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestParam;

import javax.annotation.Resource;

/**
 * <p>
 * 商品表 前端控制器
 * </p>
 *
 * @author zyl
 * @since 2025-01-05
 */
@Tag(name = "商品管理", description = "商品")
@Controller
@RequestMapping("/king/product")
public class ProductController {

    @Resource
    private IProductService productService;

    @PostMapping("/getImage")
    public Result getImage(@Parameter(description = "商品编号", required = true)
                               @RequestParam(required = true) String id) {
        return  productService.getImage(id);
    }
}
